package com.panasonic.web.controller.cms;


import com.panasonic.common.core.domain.AjaxResult;
import com.panasonic.web.service.IHomeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: HomeController
 * @description: TODO 类描述
 * @author: laiweifeng
 * @date: 2021/11/22
 **/
@RestController
@RequestMapping("/cms/home")
@Api(value = "HomeController", tags = "首页")
public class HomeController {

    @Autowired
    private IHomeService homeService;

    @ApiOperation(value = "查询")
    @GetMapping
    public AjaxResult getData() {
        return AjaxResult.success(homeService.getData());
    }
}
